<?php
class Direccion extends AppModel {

	var $name = 'Direccion';
	var $validate = array(
		'tipo_direccion' => array('numeric'),
		'persona_id' => array('numeric'),
		'comuna_tipo' => array('numeric'),
		'ciudad_tipo' => array('numeric'),
		'pais_tipo' => array('numeric'),
		'region_tipo' => array('numeric'),
		'vigencia' => array('numeric')
	);

	//The Associations below have been created with all possible keys, those that are not needed can be removed
	var $belongsTo = array(
		'Persona' => array(
			'className' => 'Persona',
			'foreignKey' => 'persona_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
		'Tipo' => array(
			'className' => 'Tipo',
			'foreignKey' => 'tipo_direccion',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		)
	);

}
?>